﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="TourCategory.aspx.cs" Inherits="TourCategory" %>

<%@ Import Namespace="AppCommon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        <asp:Literal runat="server" ID="litTitle" EnableViewState="False"></asp:Literal>
        | <%= Constants.TITLE_MAIN_PAGE %>        
    </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="row">
        <ol class="breadcrumb">
            <li>
                <asp:HyperLink runat="server" NavigateUrl="~/">Trang chủ</asp:HyperLink></li>
            <li class="active">
                <asp:Literal runat="server" ID="litTenTour"></asp:Literal></li>
        </ol>
        <div class="col-lg-4">
            <fx:TourNoiBat runat="server"/>
        </div>
        <div class="col-lg-8">
            <fx:SearchTour runat="server"/>
            <asp:Repeater runat="server" ID="repeateListtour">
                <ItemTemplate>
                    <div class="col-sm-6 block-tour-element">
                        <h3>
                            <asp:HyperLink runat="server" NavigateUrl='<%# "~/tour/" + Eval("UniqueId") %>'>
                                <%# Eval("TieuDe") %>
                            </asp:HyperLink>
                        </h3>
                        <p>
                            <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "~/tour/" + Eval("UniqueId") %>'>
                                <asp:Image ID="Image3" runat="server" ImageUrl='<%# Constants.UPLOAD_TOUR + Eval("AnhPanorama") %>' />
                            </asp:HyperLink>
                        </p>
                        <p>
                            <b>Ngày khởi hành</b> :<%# DateTime.Parse(Eval("NgayDi").ToString()).ToString("dd/MM/yyyy") %>,
                            <%# GetListNgaykhoihanh(Eval("Id").ToString())%></p>
                        <p>
                            <b>Giá</b> : <span class="label label-danger gia-tour">
                                <%# String.Format("{0:###,###,##0}", Convert.ToDecimal(Eval("Gia"))).ToString() %>
                                VNĐ</span></p>
                        <p>
                            <%# Common.LimitWords(Eval("TomTat").ToString())%>
                        </p>
                    </div>
                </ItemTemplate>
            </asp:Repeater>                    
        </div>                
        <div class="col-lg-12 phan-trang">
                <!-- Phan trang -->        
            <ul class="pagination">
                <li>
                    <asp:HyperLink runat="server" ID="linkPageFirst">&laquo;</asp:HyperLink>
                </li>
                <li>
                    <asp:HyperLink runat="server" ID="linkPagePre">Sau</asp:HyperLink>
                </li>
                <asp:Repeater runat="server" ID="litPage">
                    <ItemTemplate>
                        <li>
                            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl=""></asp:HyperLink>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                <li><a href="#">Trang <asp:Literal  runat="server" ID="litnumerCurrent"/> / <asp:Literal  runat="server" ID="litnumberTotal"/></a></li>
                <li>
                    <asp:HyperLink runat="server" ID="linkPageNext">Trước</asp:HyperLink>
                </li>
                <li>
                    <asp:HyperLink runat="server" ID="linkPageLast">&raquo;</asp:HyperLink>
                </li>
            </ul>        
        <!-- Phan trang -->
            </div>    
    </div>
</asp:Content>
